.ORIG 1000
;This is a master test file
;If the assembler successfully parses this, everything should be good
;Right?

Main: ADD R7,R3,R4
      AND R7,R3,R4 ; there are several ands, and adds, but i'm skipping over that. For now, this test is adequate
      BRnzp 1000
      BR    20 ; yeah, so, testing both BR and nzp
      JMP   R7
;maybe add a JSR here?
  ;indent JSR?
      JSR 1000
      LDB R2,R4,17
      LDW R2,R4,17
      LEA R2, 10000
      NOT R2,R2
      RET
      RTI
      LSHF R2,R4,14
      RSHFL R3,R4,14
      RSHFA R4,R3,13
      STB R3, R3, 10
      STW R3, R3, 10
      TRAP 1000
      XOR R3,R4,R2
;1038 should be the size of this file
.ORIG 500
    JSR 1000
      LDB R2,R4,17
      LDW R2,R4,17
      LEA R2, 10000
      NOT R2,R2
      RET
      RTI
      LSHF R2,R4,14
      RSHFL R3,R4,14
      RSHFA R4,R3,13
      STB R3, R3, 10
      STW R3, R3, 10
      TRAP 1000
      XOR R3,R4,R2
;No seriously, 1038 should be the size of the file